NAME := interplay
VERSION := 1.0.0

.PHONY: build install dist rpm

build:
	python setup.py build

install:
	python setup.py install

dist:
	rm -rf $(NAME)-$(VERSION)
	rm -rf $(NAME)-$(VERSION).tar.gz
	rsync -ar ./* $(NAME)-$(VERSION)
	tar -czvf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)
	rm -rf $(NAME)-$(VERSION)

rpm: dist
	rpmbuild -ta $(NAME)-$(VERSION).tar.gz
